<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

$db['prop_values']=array (
  'columns' =>
  array (
    'id' =>
    array (
      'type' => 'int unsigned',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'label' => app::get('tbdata')->_('属性自增id'),
      'width' => 110,
      'editable' => false,
      'in_list' => false,
    ),
    'cid' =>
    array (
      'type' => 'int unsigned',
      'label' => app::get('tbdata')->_('淘宝类目id'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'pid' =>
    array (
      'type' => 'int unsigned',
      'label' => app::get('tbdata')->_('淘宝属性id'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'vid' =>
    array (
      'type' => 'int unsigned',
      'label' => app::get('tbdata')->_('淘宝属性值id'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'is_parent' =>
    array (
      'type' => 'bool',
      'required' => true,
      'default' => 'false',
      'label' => app::get('tbdata')->_('是否有子属性'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'name' =>
    array (
      'type' => 'varchar(100)',
      'required' => true,
      'is_title' => true,
      'default' => '',
      'label' => app::get('tbdata')->_('属性值'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'prop_name' =>
    array (
      'type' => 'varchar(100)',
      'required' => true,
      'is_title' => true,
      'default' => '',
      'label' => app::get('tbdata')->_('属性名称'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'name_alias' =>
    array (
      'type' => 'varchar(100)',
      'required' => false,
      'is_title' => true,
      'default' => '',
      'label' => app::get('tbdata')->_('属性值别名'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'is_parent' =>
    array (
      'type' => 'bool',
      'required' => true,
      'default' => 'false',
      'label' => app::get('tbdata')->_('是否有子结点'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'status' =>
    array (
      'type' =>
      array (
        'normal' => app::get('tdata')->_('正常'),
        'deleted' => app::get('tdata')->_('已删除'),
      ),
      'required' => true,
	  'default'=>'normal',
      'label' => app::get('tbdata')->_('状态'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
    ),
    'sort_order' =>
    array (
      'type' => 'number',
      'label' => app::get('tbdata')->_('排序'),
      'width' => 110,
      'editable' => false,
      'default' => 0,
      'in_list' => true,
    ),
    'last_modify' =>
    array (
      'type' => 'last_modify',
      'label' => app::get('tbdata')->_('更新时间'),
      'width' => 110,
      'editable' => false,
      'in_list' => true,
      'filtertype' => 'yes',
      'default_in_list' => true,
    ),
  ),
  'comment' => app::get('tbdata')->_('类别属性值表'),
  'index' =>
  array (
    'ind_pid_vid_cid' =>
    array (
      'columns' =>
      array (
        0 => 'pid',
        1 => 'vid',
		2 => 'cid',
      ),
      'prefix' => 'UNIQUE',
    ),
  ),
  'version' => '$Rev: 41329 $',
);
